package com.gfhd.multithread.threadpool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolDemo2 {
    public void test(){
        ExecutorService pool=Executors.newFixedThreadPool(3);
        pool.execute(new MyRunnable());
        pool.submit(new MyCallable(100));
    }
}
